﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ControlProduct.ascx.cs" Inherits="Controls_ControlProduct" %>
<%@ Import Namespace="webapp4U" %>
<%@ Register Namespace="webapp4U.UI" TagPrefix="webapp4U" %>


<asp:UpdatePanel ID="UserUpdatePanel" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <div class="title_main"><%=ResourceManager.GetString("Product_Items")%></div>
        <div class="bg_under_title clearfix">                            
             <asp:Repeater runat="server" ID="rptProducts">
                <ItemTemplate>
                    <%--Begin Product Item--%>
                  <div class="drm_item_product clearfix">
                        <div class="drm_item_product_contentimg col_left">
                             <img src="<%=Globals.ApplicationPath %>UserUpload/Products/<%# Eval("ImageUrl") %>" width="183" height="187" class="product_img"/>
                        </div>
                        <div class="drm_containt_product_detail col_left">
                             <h2 class="title_product"><%# Eval("Title") %></h2>
                             <p>
                                <%# Eval("Summary") %>                                
                             </p><br /><br />
                             <div class="clearfix">
                                <div class="col_left magin_all"><a href="<%=Globals.ApplicationPath %>Page/ProductDetail/Default.aspx?ProductID=<%# Eval("ProductID")%>" class="button_detail_pr"><%=ResourceManager.GetString("Detail")%></a></div>
                                <div class="col_left magin_all"><a href="http://<%# Eval("LinkDemo")%>" class="button_detail_pr"><%=ResourceManager.GetString("Product_Demo")%></a></div>
                             </div>
                        </div>
                    </div>
                    <div class="drm_line"></div>
                  <%--End Product Item--%>
                </ItemTemplate>
            </asp:Repeater>         
            <div align="center" style="visibility:hidden">
                <asp:Panel ID="DisplayPager" Visible="True" runat="server">
                    <div align="center">
                        <table cellpadding="2" cellspacing="0" border="0" width="100%" align="center">
                            <tr>
                                <td valign="middle" align="center">
                                    <webapp4U:Pager ID="Pager" runat="server" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </asp:Panel>
            </div>        
        </div>
    </ContentTemplate>
</asp:UpdatePanel>